// src/stores/userStore.ts
import { defineStore } from "pinia";
import type { Status } from "@/types/Status";
import type { logArticle } from "@/types/Active";

type State = {
    logArticle:{
    result: logArticle;
    status: Status;
  }
  
};

type Getters = {};

type Actions = {
 
};

export const articlelogStore = defineStore<"articlelog", State, Getters, Actions>(
  "articlelog",
  {
    state: () => ({
        logArticle:{
            result: {
                title:"",
                cover_id:4,
                pwd:"",
                recommend:true,
                tags:[],
                category_id:0,
                content:"",
                abstract:"",
                pwd_active:false,
                cover_img:"http://192.168.233.129:8000/media/article_img/1.jpg"
                  
        },
        status:'idle'
      }
    }
     
     ),
     actions:{
   
     },
    persist: true,
  }
);